/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ar.com.gestion.MenuPrincipal;

/**
 *
 * @author martinLequerica
 */
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import javax.swing.JList;
import javax.swing.JMenuItem;
import javax.swing.JPopupMenu;
import javax.swing.JTable;

import ar.com.gestion.listeners.PopUpAgregarActionListener;
import ar.com.gestion.listeners.PopUpModificarActionListener;

public class PopMenu extends JPopupMenu {
	// PopUpMenu Boton derecho

	private JMenuItem agregar;
	private JMenuItem modificar;
	private JTable tabla;
	private JList lista;

	public PopMenu() {

		agregar = new JMenuItem("Agregar");
		modificar = new JMenuItem("Modificar");

		// JPopUpMenu
		add(agregar);
		add(modificar);

		agregar.addActionListener(new PopUpAgregarActionListener());
		modificar.addActionListener(new PopUpModificarActionListener());

		// Establecer PopUpMenu al JFrame

		// agregar.addActionListener(new AgregarJmenuListener());

	}



	public JMenuItem getAgregar() {
		return agregar;
	}

	public JMenuItem getModificar() {
		return modificar;
	}

}